package model

import "gorm.io/gorm"

type Novel struct {
	gorm.Model
	Title  string `gorm:"type:varchar(30)"`
	Desc   string `gorm:"type:varchar(100)"`
	Author string `gorm:"type:varchar(30)"`
	Uid    int    `gorm:"type:int"`
}

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30)"`
	Password string `gorm:"type:varchar(32)"`
}
type NovelList struct {
	Nid int
	//Uid      int
	Title    string
	Desc     string
	Author   string
	Username string
}
